<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="robots" content="follow, index">
    <title><?php echo $this->config->item('site_name'); ?>
    </title>
    <meta name="description"
          content="<?php echo $this->config->item('meta_description'); ?>">
    <meta name="author"
          content="<?php echo $this->config->item('meta_google_plus'); ?>">
    <meta name="keywords"
          content="<?php echo $this->config->item('meta_keywords'); ?>">

    <!-- Twitter -->
    <meta name="twitter:card" content="summary">
    <meta name="twitter:site"
          content="@<?php echo $this->config->item('Twitter_handle'); ?>">
    <meta name="twitter:creator" content="">
    <meta name="twitter:title" content="">
    <meta name="twitter:description"
          content="<?php echo $this->config->item('meta_description'); ?>">
    <meta name="twitter:image" content="">
    <!-- Facebook Open Graph -->
    <meta property="og:title" content=""/>
    <meta property="og:type" content=""/>
    <meta property="og:description" content=""/>
    <meta property="og:image" content=""/>
    <meta property="og:url" content=""/>
    <meta property="og:site_name"
          content="<?php echo $this->config->item('site_name'); ?>"/>
    <!-- Google Plus -->
    <meta itemprop="name" content=""/>
    <meta itemprop="image" content=""/>
    <meta itemprop="description"
          content="<?php echo $this->config->item('meta_description'); ?>"/>

    <!-- Styles -->

    <?php
    // add logic if user is logged in to flush the assets cache
    // Assets::clear_cache();
    ?>

    <?php Assets::css($this->config->item('theme_css')); ?>
    <link
        href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css"
        rel="stylesheet">
    <link href="<?= base_url(); ?>assets/css/style.css" rel="stylesheet">
    <link href="<?= base_url(); ?>assets/css/ypstyle.css" rel="stylesheet">
    <link href="<?= base_url(); ?>assets/css/jquery-ui.css" rel="stylesheet">
    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <!-- JS -->
    <?php Assets::cdn($this->config->item('theme_jscdn')); ?>
    <?php Assets::js($this->config->item('theme_js')); ?>

    <script src="<?= base_url(); ?>assets/js/jquery-ui-1.10.3.custom.js"></script>

    <!-- favicon -->
    <link rel="shortcut icon"
          href="<?php echo base_url('assets/img/ico/favicon.ico'); ?>">
</head>

<body data-baseurl="<?= base_url(); ?>">

<section class="header">
    <?php
    if (isset($template['partials']['header']))
        echo $template['partials']['header'];
    ?>
</section>
<div class="wrapper">
    <?php
    if ($template['breadcrumbs']) {
        ?>

        <div class="row">
            <div class="container">
                <div class="col-lg-12">
                    <ul class="breadcrumb">
                        <li><a href="<?= base_url(); ?>"><i class="fa fa-lg fa-home"></i> </a>
                        </li>
                        <?php
                        foreach ($template['breadcrumbs'] as $breadcrumbs):
                        ?>

                        <li>
                            <?php if ($breadcrumbs['uri']) { ?>
                                <?php echo anchor($breadcrumbs['uri'], $breadcrumbs['name'], "title=" . $breadcrumbs['name'] . "");

                            } else {
                                echo $breadcrumbs['name'];
                            }

                            endforeach;

                            ?>
                        </li>

                    </ul>
                </div>
            </div>
        </div>
    <?php } ?>

    <!-- PAGE CONTENT -->
    <div class="row">
        <div class="container">
            <div class="col-lg-12">
                <?php echo $template['body']; ?>
            </div>
        </div>
    </div>
    <!-- End Row -->

    <!-- /container -->

</div>




<?php
if (isset($template['partials']['footer']))
    echo $template['partials']['footer'];
?>
</body>
</html>
